@charset "UTF-8";

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700);

@import "lib";
@import "flipInY";
@import "flipOutY";

// ------------------------------------------------------
$before-start: rgb(250, 206, 206);
$text-selection: rgb(199, 238, 199);
$after-end: rgb(206, 206, 247);

%box-shadow-pane {
    border-radius: 8px;
    box-shadow: 0px 1px 6px 0px silver;
}
%m-box-shadow-pane {
    border-radius: 4px;
    box-shadow: 0px 1px 6px 0px silver;
}
%box-shadow-button {
    border-radius: 4px;
    box-shadow: 0px 1px 3px 0px silver;
}

%input-text {
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 4px silver;
    padding: 2px;
}
// ------------------------------------------------------
@include flipInY-keyframe();
@include flipOutY-keyframe();
@include css-keyframe(fadein) {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@include css-keyframe(bg_morphing) {
    0% { background-color: rgba(56, 121, 138, 0.34) }
    100% { background-color: transparent }
}
@include css-keyframe(fire-anim) {
    0% {
    text-shadow:
    4px  4px  10px #3434ff;
    //0px  0px  10px #fefcc9;
    //3px -3px  15px #feec85,
   //-6px -6px  20px #ffae34;
    //6px -9px  25px #ec760c,
   //-6px -12px 30px #cd4606;
    //0px -15px 35px #973716,
    //3px -18px 40px #451b0e;
    }
    100% {
    text-shadow:
    0px  0px  0px #FFFFFF;
    //0px  0px  2px #fefcc9;
    //3px 2px  3px #feec85,
   //-6px 4px  4px #ffae34;
    //6px -6px  5px #ec760c,
   //-6px -8px 6px #cd4606;
    //0px -10px 7px #973716,
    //3px -12px 8px #451b0e;
    }
}


* {
    font-family: "open sans";
    box-sizing: border-box;
}
body {
    //font-family:"Open Sans";
    font-size: 13px;
    padding: 20px;
    padding-bottom: 80px;
    background: #FFF;
    text-align:left;
}
.tips {
    position: absolute;
    top: 110px;
    right: 40px;
    opacity: 0.5;
    @include css3-vararg(user-select, none);
    pre {
        font-family: monospace;
        font-size: 80%;
    }
}

#header {
    @extend %box-shadow-pane;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 190%;
    width: 100%;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.31);
    //-webkit-transition: all 1s linear 0;
    //transition: all 1s linear 0;
    &:hover {
        background-color: rgba(56, 121, 138, 0.34);
        @include css3-vararg(
            animation, flipInY 1.5s ease 0.3s
        );
    }
}
.header-mout {
    @include css3-vararg(
        animation, fadein 2s ease 0s
    );
}
.header-morphing {
    @include css3-vararg(
        animation, bg_morphing 2s ease 0s
    );
}
.header-mover {
    background-color: rgba(56, 121, 138, 0.34);
    @include css3-vararg(
        animation, flipInY 1s ease 0s
    );
}
.config-pane {
    margin-bottom: 6px;
    label[for] {
        //font-family: monospace;
        font-weight: bold;
        margin-left: 4px;
    }
    .config-button {
        @extend %box-shadow-button;
        background-image: linear-gradient(to top, #CFCFCF 10%, rgba(255, 255, 255, 0.79) 100%);
        width: 100px;
        border: none;
        margin-right: 4px;
        &[id='clear'] {

        }
    }
}

#search {
    @extend %input-text;
    width: 150px;
}
#ta_ss, #ta_se {
    @extend %input-text;
    width: 30px;
    height: 1.4em;
    text-align: right;
}
#text {
    @extend %box-shadow-pane;
    border: none;
    padding: 3px;
    margin-bottom: 30px;
    width: 100%;
    height: 220px;
    color: gray;
    //background: linear-gradient(to top, #dddddd 20%, rgba(245, 245, 245, 0.79) 90%);
    //text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    //-moz-transition: all 0.2s linear 0;
    //-webkit-transition: all 0.2s linear 0;
}
.shadow-text-anim {
    @include css3-vararg(
        animation, fire-anim 2s ease 0s infinite alternate
    );
}
#any:hover{
    text-shadow:
    0px  0px  10px #fefcc9,
    3px -3px  15px #feec85,
   -6px -6px  20px #ffae34,
    6px -9px  25px #ec760c,
   -6px -12px 30px #cd4606,
    0px -15px 35px #973716,
    3px -18px 40px #451b0e;
}

.span-tag {
    border-radius: 4px;
    box-shadow: 0 0 3px silver;
    width: auto;
    padding: 0px 10px 0px 10px;
    margin-right: 2px;
    &.tips-bindig {
        //background-color: #C7E4C3;
    }
    &.tips-keys {
        background-color: #D1CECE;
        margin: 0;
        padding: 2px;
        box-shadow: none;
        line-height: 1;
        /* height: 10px; */
        vertical-align: middle;
        display: inline-block;
    }
    &.before-start {
        background-color: $before-start;
    }
    &.text-selection {
        background-color: $text-selection;
    }
    &.after-end {
        background-color: $after-end;
    }
}

#pick_length {
    @extend %input-text;
    width: 30px;
    height: 1.4em;
    text-align: right;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    word-break: break-all;
    word-wrap: break-word;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#log {
    span {
        border-radius: 2px;
        box-shadow: 0.2px 0.5px 1px 0px rgba(148, 143, 143, 0.52);
        margin-right: 1px;
        font-family: monospace;
    }
    .pick-left {
        background-color: $before-start;
    }
    .pick-select {
        background-color: $text-selection;
    }
    .pick-right {
        background-color: $after-end;
    }
}
